#include"priority_queue.hpp"

namespace my_priority{

  void _test1(){
    priority_queue<int> pq;
    pq.push(1);
    pq.push(2);
    pq.push(3);
    pq.push(4);
    pq.push(5);

   /* for(const auto&it:pq._con){
        cout<<it<<" ";
    }*/

    cout<<endl;
  }

  void _test2(){
    priority_queue<int,vector<int>,greater<int>> pq;
    pq.push(1);
    pq.push(2);
    pq.push(3);
    pq.push(4);
    pq.push(5);

    priority_queue<int,vector<int>,greater<int>> pp;
    pq.swap(pp);

    while(!pp.empty()){
      cout<<pp.top()<<" ";
      pp.pop();
    }    

    cout<<endl;
  }
}

int main()
{
//  my_priority::_test1();//该测试函数仅在.hpp文件中的private被注释时使用
  my_priority::_test2();
  return 0;
}
